package com.nameless.feign;

import com.nameless.entity.Car;
import com.nameless.entity.CarTypeConfigDetails;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author keluoyisi
 * @program: car-parent
 * @description:
 * @date 2023-02-27 21:11:10
 */
@SuppressWarnings("all")
@FeignClient(value = "car-cars")
public interface CarFeign {
    @GetMapping("/cars/car/selectId/{id}")
    Car selectId(@PathVariable Integer id);

    @GetMapping("/cars/car/selectName/{name}")
    Car selectName(@PathVariable String name);

    @GetMapping("/cars/car/getCarByShopId/{shopId}")
    List<Car> getCarByShopId(@PathVariable Integer shopId);

    @GetMapping("/cars/car/carShopIdTypeId/{shopId}/{type}")
    List<Car> carShopIdTypeId(@PathVariable Integer shopId,@PathVariable Integer type);

    @GetMapping("/cars/typeConfig/getTypeConfigAll")
    List<CarTypeConfigDetails> getTypeConfigAll();

    @GetMapping("/cars/car/carSort/{shopId}/{type}/{value}")
    List<Car> carSort(@PathVariable Integer shopId,@PathVariable Integer type,@PathVariable Integer value);

    @GetMapping("/cars/car/carConfig/{shopId}/{type}/{value}")
    List<Car> carConfig(@PathVariable Integer shopId,@PathVariable Integer type,@PathVariable Integer value);
    @GetMapping("/cars/car/carBrand/{shopId}/{type}/{value}")
    List<Car> carBrand(@PathVariable Integer shopId,@PathVariable Integer type,@PathVariable Integer value);

}
